03. Reserved IP addresses

Reserved IP addresses

Reserved IP addresses

An IPv4 address is actually a 32-bit numeric value. We usually write it as a dotted quad — four decimal numbers,
separated by dots, like 206.190.36.45 or 180.149.132.47. Each of the four numbers written down like this
represents one octet or 8-bit value.

But writing an IP address as four decimal numbers is just a convention to make it easier to read. When it’s used between
computers, an address is transmitted in binary, just like all the other data sent over the network.

However, not all of the possible 32-bit values are used for real addresses. Some of them are used for special applications
that use addresses differently. Some of them are reserved for internal private networks. Some of them are for testing or
documentation.

Here's a visualization of the entire IPv4 address space. Each square represents one possible value of the first octet
of an address. For instance, the square on the top right, labeled 15, represents all the IPv4 addresses that start with
15 as their first octet.

[IPv4 address map]

In fact, just over one-eighth of all possible IPv4 addresses are set aside for something other than addressing public hosts.
But as you'll see, even if we did use all 32-bit addresses to represent public hosts, that still wouldn’t really be enough.